home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / libs / shutdown.lzh / shutdown_5.1 / src / shutdown_lib / shutdownbase.h < prev    next >
C/C++ Source or Header  |  1996-12-02  |  697b  |  35 lines

  1.  
  2. #ifndef _LIBRARIES_SHUTDOWN_H
  3. #define _LIBRARIES_SHUTDOWN_H 1
  4.  
  5. #ifndef _EXEC_TYPES_H
  6. #include <exec/types.h>
  7. #endif    /* !_EXEC_TYPES_H */
  8.  
  9. #ifndef _EXEC_NODES_H
  10. #include <exec/nodes.h>
  11. #endif    /* !_EXEC_NODES_H */
  12.  
  13. #define SDB_RESET    0
  14. #define SDF_RESET    (1 << 0)
  15.  
  16. #define SD_CHECK    0
  17. #define SD_EXIT        1
  18.  
  19. #define SHUTDOWN_NORMAL    0
  20. #define SHUTDOWN_FAST    1
  21. #define SHUTDOWN_EXTERN 2
  22.  
  23. typedef struct ShutdownInfo
  24. {
  25.     struct MinNode     sdi_Node;
  26.     STRPTR         sdi_Name;
  27.     struct Hook    *sdi_Hook;
  28. } ShutdownInfo;
  29.  
  30. APTR AddShutdownInfoTagList (struct Hook *Hook, STRPTR Name, struct TagItem *TagList);
  31. LONG RemShutdownInfo (struct ShutdownInfo *Info);
  32. LONG Shutdown (ULONG mode);
  33.  
  34. #endif    /* _LIBRARIES_SHUTDOWN_H */
  35.